﻿
@{
    Layout = null;
}
@using System.Security.Claims;

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
</head>
<body>
    @if (User.Identities.Any(u => u.IsAuthenticated))
    {<h1>欢迎登陆 @User.Identities.First(u => u.IsAuthenticated).FindFirst(ClaimTypes.Name).Value</h1>
    <h2>所使用的身份验证的类型：@User.Identity.AuthenticationType</h2>}
    <article>假如生活欺骗了你<br />假如生活欺骗了你<br />不要悲伤，不要心急<br />忧郁的日子里须要镇静<br />相信吧，快乐的日子将会来临</article>
</body>
</html>
